<?php

// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;

return [
    //别名配置,别名只能是映射到控制器且访问时必须加上请求的方法
    '__alias__'   => [
    ],
    //变量规则
    '__pattern__' => [
        'id' => '\d+',
        'page' => '\d+',
        'total' => '\d+',
    ],
//        域名绑定到模块
//        '__domain__'  => [
//            'admin' => 'admin',
//            'api'   => 'api',
//        ],

    'diary/:id/[:cid]/[:cpage]/[:total]$'=> 'diary/index',
    'video/:id/[:cid]/[:cpage]/[:total]$'=> 'diary/video',
    'note/:id/[:cid]/[:cpage]/[:total]$'=> 'diary/note',
    'comprehensive/:id/[:cid]/[:cpage]/[:total]$'=> 'diary/comprehensive',

    'plan/:identify/:id/[:cpage]/[:total]$'=>'plan/index',

    'extension/:identify/:id/[:cpage]/[:total]$'=>'extension/index',

    'about/:id$'=>'about/index',

    'navigation/[:cid]$'=>'navigation/index',

    'quesans/detail/:id$'=>'quesans/detail',
    'quesans/[:keywords]/[:cpage]/[:total]'=>'quesans/index',

    'timeline/[:time]/[:searchtime]/[:cpage]/[:total]$'=>'timeline/index',

    'detail/:id$'=> 'article/detail',

    'list/[:keywords]/[:cid]/[:tagsids]/[:cpage]/[:total]$'=> 'article/index',

];